FROM python:3.9-buster

COPY ./requirements.txt /tmp/requirements.txt
RUN pip install -r /tmp/requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/

COPY . /workspace

WORKDIR /workspace

CMD "gunicorn -w 5 -b 0.0.0.0:9000 -t 120 app:app"
